﻿using LoginModule.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LoginModule.Models {
    /// <summary>
    /// 账户DTO
    /// </summary>
    [Table("AccountInfoModel")]
    public class AccountInfoModel {
        /// <summary>
        /// 账号id
        /// </summary>
        [Key]
        private int _Id;

        public int Id {
            get { return _Id; }
            set { _Id = value; }
        }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 登录账号
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Pwd { get; set; }

        /// <summary>
        /// 再次输入的密码
        /// </summary>
        public string ConfirmPwd { get; set; }

        private Authority _Authority;

        public Authority Authority {
            get { return _Authority; }
            set { _Authority = value; }
        }


    }
}
